package com.shine.commonlibrary.utils.basemvp;

import android.content.Context;

import com.shine.commonlibrary.utils.baserx.RxManager;


/**
 * Created by M_genius on 2017/9/6 14:17.
 * 描述：基类BasePresenter
 *      以 MVP 模式中的Presenter
 */

public abstract class BasePresenter<V extends BaseView, M extends BaseModel> {
    public Context mContext;
    public M mModel;
    public V mView;
    public RxManager mRxManage = new RxManager();

    public BasePresenter(V v, M m){
        mView = v;
        mModel = m;
        this.onStart();
    }


    public void onStart() {
    }


    public void onDestroy() {
        mRxManage.clear();
    }
}
